<<<<<<< HEAD:项目代码/Backstage Management System/src/service/question.ts
import { IAddTyoes, ICondition, ILogin, IQuestionForm,Adduser } from '@/utils/interface';
=======
import { IAddTyoes, ICondition, ILogin, IQuestionForm } from '@/utils/interface';
>>>>>>> 925273379b18744fc15f250871f012fa5f2db418:项目代码/liuexam_cms/src/service/question.ts
import { request } from 'umi';

// 获取试题列表
export function getQuestionType(){
  return request('/exam/getQuestionsType');
}
// 获取登录数据
export function login(data: ILogin){
  return request('/user/login', {
    method: 'POST',
    data
  });
}

// 获取用户信息接口
export function getUserInfo(){
  return request('/user/userInfo');
}

// 获取所有课程
export function getExamSubject(){
  return request('/exam/subject');
}

// 获取所有考试类型
export function getExamType(){
  return request('/exam/examType');
}

// 添加试题
export function submitQuestion(data: IQuestionForm){
  return request('/exam/questions', {
    method: 'POST',
    data
  })
}

//添加试题类型

export function insertQuestions(value:IAddTyoes){
  return request('/exam/insertQuestionsType',{
    method:'GET',
    params:value
  })
}

//获取所有试题
export function examQuestions(){
  return request('/exam/questions/new')
}

//按条件获取试题
export function conditionQuestions(data:ICondition){
  return request('/exam/questions/condition',{params:data})
}

<<<<<<< HEAD:项目代码/Backstage Management System/src/service/question.ts
=======

>>>>>>> 925273379b18744fc15f250871f012fa5f2db418:项目代码/liuexam_cms/src/service/question.ts
//更新试题
export function updataExam(data:IQuestionForm){
  return request('/exam/questions/update',{
    method:'PUT',
<<<<<<< HEAD:项目代码/Backstage Management System/src/service/question.ts
    params:data
  })
}
//获取视图权限数据
export function getViewAuthoritys(){
  return request('/user/view_authority');
=======
    data
  })
}

<<<<<<< HEAD:项目代码/four_group_warehouse/src/service/question.ts

//  身份数据  /user/identity

export function identity(){
  return request('/user/identity')
}

// api接口权限 /user/api_authority
export function apiAuthority(){
  return request('/user/api_authority')
}


//身份和api权限关系  /user/identity_api_authority_relation
export function identityApiRelation(){
  return request('/user/identity_api_authority_relation')
}

///user/view_authority  试图接口权限
export function getViewAuthoritys(){
  return request('/user/view_authority');
}
//user/identity_view_authority_relation 身份和视图权限关系
export function identityViewAuthorityRelation(){
  return request('/user/identity_view_authority_relation');
}
=======
export function getViewNew(data:{user_id:string}){
  return request('/user/new',{
    method:'GET',
    params:data
  });
>>>>>>> 925273379b18744fc15f250871f012fa5f2db418:项目代码/liuexam_cms/src/service/question.ts
}

>>>>>>> 6801ff71268e10758d0eab903f2d851036f102dd:项目代码/liuexam_cms/src/service/question.ts
